package com.bauer.module.gateway.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author ：rui.wei
 * @Date ：Created in 10:07 2019/9/16
 * @Description：
 */
@Configuration
public class WebConfigurer implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(null).addPathPatterns("/api/v1/**").excludePathPatterns("/api/v1/login",
                "/api/v1/sendsms", "/api/v1/refresh/token", "/api/v1/visitor/login");
    }


}
